<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script src="https://unpkg.com/vue@next"></script>
<div id="app">
    <ul>
        <li v-for="item in items">{{item.message}}</li>
    </ul>
</div>
<script>
    const vueOpt = {
        data(){
            return {
                items:[{message:'hello', id:1}, {message:'world', id: 2}, {message: 'other', id: 3}]
            }
        },
        mounted(){
            setTimeout(()=>{
                this.items = this.items.filter((value)=>{
                    return value.message.match(/hello/)
                })
            }, 1000)
        }
    }

    Vue.createApp(vueOpt).mount('#app')
</script>
</body>
</html>
